/**
 * Created by dell-pc on 2016/8/17.
 */
$(function() {
    /*模块二追加*/
    var st="设计图图图图图";
    var tLength=st.length;
    var w=191-tLength*28;
    if(w<0) {
        var w=191-tLength*24;
        $('.swiper-add').css("font-size" ,"24px");
    }else{
        $('.swiper-add').css("font-size" ,"28px");
    }
    var html='';
    for (var i = 0; len = tLength, i < len; i++) {
        html += '<span>'+st[i]+'</span>';
    }
    $('.swiper-add').append(html);
    $('.swiper-add span').css({ 'margin-left': w / (tLength - 1) + 'px' });
    $('.swiper-add').children().eq(0).css('margin-left', '0');
    /*模块三追加*/
    var st="设计设计设";
    var tLength=st.length;
    var w=191-tLength*28;
    if(w<0) {
        var w=191-tLength*24;
        $('.swiper-add3').css("font-size" ,"24px");
    }else{
        $('.swiper-add3').css("font-size" ,"28px");
    }
    var html='';
    for (var i = 0; len = tLength, i < len; i++) {
        html += '<span>'+st[i]+'</span>';
    }
    $('.swiper-add3').append(html);
    $('.swiper-add3 span').css({ 'margin-left': w / (tLength - 1) + 'px' });
    $('.swiper-add3').children().eq(0).css('margin-left', '0');
    /*模块四追加*/
    var st="设计模设";
    var tLength=st.length;
    var w=191-tLength*28;
    if(w<0) {
        var w=191-tLength*24;
        $('.swiper-add4').css("font-size" ,"24px");
    }else{
        $('.swiper-add4').css("font-size" ,"28px");
    }
    var html='';
    for (var i = 0; len = tLength, i < len; i++) {
        html += '<span>'+st[i]+'</span>';
    }
    $('.swiper-add4').append(html);
    $('.swiper-add4 span').css({ 'margin-left': w / (tLength - 1) + 'px' });
    $('.swiper-add4').children().eq(0).css('margin-left', '0');
})